package com.xinlu.common.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.xinlu.common.resource.io.ResourcesInitUtil;
import com.xinlu.derek.common.BaseAction;

public class ResourcesInitInterceptor extends CommonInterceptor{

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		
		ResourcesInitUtil resourcesInit = new ResourcesInitUtil((BaseAction) invocation.getAction());

		resourcesInit.initText();

		return invocation.invoke();
	}
	
	
	
}
